<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
	<tr><th>Createur</th><th>Nom de la partie</th><th>Joueurs</th><th>Rejoindre</th></tr>
	<c:forEach var="game" items="${games}">
		<tr id="${game.getId()}" onclick="select(this.id)">
			<td>${game.getCreator().getLogin()}</td>
			<td>${game.getName()}</td>
			<td>${game.getGrids().size()}</td>
			<td><form method="post" action="lobby.html">
				<input type="hidden" name="gameID"
					value="${partie.getId()}" />
				<input type="submit" value="Rejoindre" />
			</form></td>
		</tr>
	</c:forEach>
</table>
